var dns = require("dns");
dns.lookup("www.bdidu.com", (err,adderss,family)=>{
    // ip地址
    console.log("address:"+adderss);
    //4表示返回IPv4，6表示返回IPv6
    console.log("family:"+family);
})